namespace CLELCore.Assembly.CLELInstructions
{
	public class Stlocs : CLELInstruction
	{
		private byte _local;
		public byte Local
		{
			get
			{
				return _local;
			}
			set
			{
				_local = value;
			}
		}
		public override int Length
		{
			get
			{
				return 2;
			}
		}
		public Stlocs(byte local) : base(CLELOpcode.STLOCS)
		{
			_local = local;
		}

		public override byte[] GetBytes(bool little_endian)
		{
			byte[] ret = new byte[2];
			ret[0] = CLELOpcode.STLOCS;
			ret[1] = _local;
			return ret;
		}
		
		public override string ToString()
		{
			return "stloc.s " + _local;
		}
	}
}
